var userName=process.argv[2];
var pwd=process.argv[3];
var str="userName:"+userName+"pwd:"+pwd;
var buf1=Buffer.from(str);//默认utf-8的编码方式
var str1=buf1.toString("base64");
console.log(str1);